/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class em
/*    */ {
/*    */   public static final String g = "0123456789ABCDEF";
/*    */   
/*    */   public static String v(byte[] a) {
/* 28 */     if (a == null) {
/* 29 */       return "";
/*    */     }
/* 31 */     StringBuffer stringBuffer = new StringBuffer(2 * a.length);
/* 32 */     for (int i = 0; i < a.length; i++) {
/* 33 */       int j = (256 + a[i]) % 256;
/* 34 */       stringBuffer.append("0123456789ABCDEF".charAt(j / 16 & 0xF));
/* 35 */       stringBuffer.append("0123456789ABCDEF".charAt(j % 16 & 0xF));
/*    */     } 
/* 37 */     return stringBuffer.toString();
/*    */   }
/*    */   
/*    */   public static byte[] v(String a) {
/* 41 */     String str = a;
/* 42 */     if (a == null) {
/*    */       
/* 44 */       str = "";
/* 45 */     } else if (a.length() % 2 != 0) {
/*    */       
/* 47 */       str = "0" + a;
/*    */     } 
/* 49 */     byte[] arrayOfByte = new byte[str.length() / 2];
/* 50 */     for (int i = 0, j = 0; i < str.length(); j++) {
/* 51 */       char c1 = str.charAt(i++);
/* 52 */       char c2 = str.charAt(i++);
/* 53 */       arrayOfByte[j] = (byte)(v(c1) * 16 + v(c2));
/*    */     } 
/* 55 */     return arrayOfByte;
/*    */   }
/*    */   
/*    */   public static int v(char a) {
/* 59 */     if (a >= '0' && a <= '9') {
/* 60 */       return a - 48;
/*    */     }
/* 62 */     if (a >= 'A' && a <= 'F') {
/* 63 */       return a - 65 + 10;
/*    */     }
/* 65 */     if (a >= 'a' && a <= 'f') {
/* 66 */       return a - 97 + 10;
/*    */     }
/* 68 */     throw new IllegalArgumentException("Input string may only contain hex digits, but found '" + a + "'");
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\em.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */